package org.edu.isis.bravefox;

import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.widget.MediaController;
import android.widget.VideoView;

public class video extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.newvideo);
        
        VideoView videoView = (VideoView) findViewById(R.id.VideoView);
        MediaController mediaController=new MediaController(this);
        mediaController.setAnchorView(videoView);
        
        Uri video = Uri.parse("http://www.pocketjourney.com/downloads/pj/video/famous.3gp");
        videoView.setMediaController(mediaController);
        videoView.setVideoURI(video);
        videoView.start();
        
        
    }
}